Current Location: Home> Function Categories> octdec

octdec

Convert octal to decimal
Name:octdec
Category:math
Programming Language:php
One-line Description:Convert octal to decimal.

Definition and usage

The octdec() function converts octal to decimal.

Example

 <?php
echo octdec ( "36" ) ;
echo octdec ( "12" ) ;
echo octdec ( "3063" ) ;
echo octdec ( "106" ) ;
?>

Try it yourself

grammar

 octdec ( octal_string )
parameter describe
octal_string Required. Specifies the octal number to be converted.

illustrate

Returns the decimal equivalent value of the octal number represented by the octal_string parameter. The maximum convertible value is 177777777777 or 2147483647 in decimal. Starting with PHP 4.1.0, the function can handle large numbers, in which case it returns the float type.

Similar Functions
  • Determine whether it is a legal value is_nan

    is_nan

    Determinewhetheritis
  • Find the minimum value min

    min

    Findtheminimumvalue
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Hyperbolic tangent tanh

    tanh

    Hyperbolictangent
  • Antihyperbolic cosine acosh

    acosh

    Antihyperboliccosine
  • Generate a random integer rand

    rand

    Generatearandominteg
  • Inverse hyperbolic sine asinh

    asinh

    Inversehyperbolicsin
  • Hyperbolic cosine cosh

    cosh

    Hyperboliccosine
Popular Articles